﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Ask_txt.aspx.cs" Inherits="Weixin.Web.Ask_txt" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no" />
    <title><%=_AskEntity.title %></title>
    <link rel="stylesheet" href="Styles/jquery.mobile-1.3.2.min.css" />
    <script type="text/javascript" src="Scripts/jquery-1.9.1.min.js"></script>
    <script type="text/javascript" src="Scripts/jquery.mobile-1.3.2.min.js"></script>
    <link rel="stylesheet" href="Styles/css.css" />
</head>
<body>
    <form id="form1" runat="server">
    <div data-role="page">
        <div class="content" data-role="content">
            <div>
                <span class="hotline">咨询热线:400-677-1077</span><img src="images/logo.jpg" />
            </div>
            <div class="sep"></div>
            <h3>
                <%=_AskEntity.title %></h3>
            <div class="nav">税务咨询&nbsp;&nbsp;2014-07-19&nbsp;&nbsp;<a href="###">中国税务咨询师</a></div>
            <div class="zhengwen">
            <%=_AskEntity.content %>
            </div>
            <p><b>回复：</b></p>
            <div class="zhengwen">
            <%=_ReAskEntity.content %>
            </div>
            <a href="Ask.aspx?sortId=<%=Request.QueryString["sortId"] %>" data-role="button" data-theme="b" data-icon="back" data-ajax="false">返回</a>
        </div>
    </div>
    </form>
    <script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
    <script type="text/javascript">
        wx.config({
            debug: false,
            appId: 'wx703bdad593d1756d',
            timestamp: <%=timestamp %>,
            nonceStr: '<%=noncestr %>',
            signature: '<%=signature %>',
            jsApiList: ['onMenuShareTimeline','onMenuShareAppMessage','onMenuShareQQ','onMenuShareWeibo']
        });
    </script>
    <script type="text/javascript">
        wx.ready(function () {
            //wx.hideOptionMenu();
            wx.onMenuShareTimeline({
                title: '<%=title %>',
                link: '<%=url %>',
                imgUrl: 'http://wx.china-tax.org/images/logo2.jpg',
                trigger: function (res) {
                    //alert('用户点击分享到朋友圈');
                },
                success: function (res) {
                    //alert('已分享');
                },
                cancel: function (res) {
                    //alert('已取消');
                },
                fail: function (res) {
                    alert(JSON.stringify(res));
                }
            });
            wx.onMenuShareAppMessage({
                title: '<%=title %>',
                desc: '<%=desc %>',
                link: '<%=url %>',
                imgUrl: 'http://wx.china-tax.org/images/logo2.jpg',
                type: 'link',
                dataUrl: '',
                trigger: function (res) {
                    //alert('用户点击发送给朋友');
                },
                success: function (res) {
                    //alert('已分享');
                },
                cancel: function (res) {
                    //alert('已取消');
                },
                fail: function (res) {
                    alert(JSON.stringify(res));
                }
            });
            wx.onMenuShareQQ({
                title: '<%=title %>', // 分享标题
                desc: '<%=desc %>', // 分享描述
                link: '<%=url %>', // 分享链接
                imgUrl: 'http://wx.china-tax.org/images/logo2.jpg', // 分享图标
                success: function () {
                    //alert('已分享');
                },
                cancel: function () {
                    // 用户取消分享后执行的回调函数
                }
            });
            wx.onMenuShareWeibo({
                title: '<%=title %>', // 分享标题
                desc: '<%=title %>', // 分享描述
                link: '<%=url %>', // 分享链接
                imgUrl: 'http://wx.china-tax.org/images/logo2.jpg', // 分享图标
                success: function () {
                    //alert('已分享');
                },
                cancel: function () {
                    // 用户取消分享后执行的回调函数
                }
            });
        });
    </script>
</body>
</html>
